<template>
	<el-button :type="checked ? 'primary' : ''" :text="!checked" plain>
		<slot></slot>
	</el-button>
</template>
<script lang="ts" setup>
// 文本按钮,可以被选中, 选中后有背景色, 默认没有背景色和边框
// 用法  
// <MkButtonChecked @click='filter' icon='ele-Filter' :checked='checked'>筛选</MkButtonChecked>
defineOptions({
	name: 'MkButtonChecked',
});

const props = defineProps({
	checked: {
		type: Boolean,
		default: false,
	},
});
</script>
